package com.pattern.design.designpattern.Diedaiqi;

import java.util.ArrayList;
import java.util.List;

/**
 * author:harisucici on 2018/10/10 17:27
 * email:harisucici@gmail.com
 * name:
 * todo:
 */
public class CompanyA implements CompanyRongqi{
    private List<Employee> list = new ArrayList<>(2);

    /**
     * Instantiates a new Company a.
     */
    public CompanyA(){
        for(int i = 0;i<5;i++){
            list.add(new Employee("AAA"+i,i+20,"男","测试"+i));
        }
    }

    /**
     * Get employee list.
     *
     * @return the list
     */
    public List<Employee> getEmployee(){
        return list;
    }

    @Override
    public Diedaiqi diedaiqi() {
        return new CompanyADiedaiqi(list);
    }
}
